<?php
declare (strict_types = 1);

namespace app\course\logic\base;

use think\facade\Request;
use app\common\exception\LogicException;
use app\course\model\base\CourseExamLink as CourseExamLinkModel;

/**
 * 课程关联考试类
 * Author 亓官雨树<lucky.max@foxmail.com>
 * Date 2021-10-13
 */
class CourseExamLink extends CourseExamLinkModel
{

	/**
	 * 课程关联考试
	 */
    public function getCourseExams($courseId)
    {
        return $this->whereIn('course_id', $courseId)->field('paper_id,pass_score')->select();
    }

}
